package chpt_04_lesson_01.log;

import org.springframework.stereotype.Component;

/**
 * @author Ping
 * @date 2023/3/15 11:01
 **/
@Component("fileLogFactory")
public class FileLogFactory implements AbstractLogFactory {
    private static FileLog log = new FileLog() ;

    public FileLogFactory() {
        System.out.println("hello from factory.") ;
    }

    @Override
    public Log getLog() {
        return log;
    }
}
